package com.csx.stack;

/**
 * @author 陈胤训
 * <p>
 * create: 2019-04-01 12:09
 **/
public class ArrayStackMain {

    public static void main(String[] args) {

        ArrayStack<Integer> arrayStack = new ArrayStack<>();

        for (int i = 0; i < 5; i++) {
            arrayStack.push(i);
            System.out.println(arrayStack.toString());
        }
        arrayStack.pop();
        System.out.println(arrayStack);

    }
}
